/**************************************
 **
 **
 **
 **
 **
 **************************************/
#ifndef CCONTROLLER_H
#define CCONTROLLER_H

#include <Windows.h>
#include <XInput.h>

class cController {
	public:
		//Constructor for the class
		cController(int slot);

		//Destructor for the class
		~cController();

		//Returns the state of the controller
		XINPUT_STATE getState();

		//Performs a check to see if the controller is connected
		bool isConnected();

		//Vibration for the controller
		void vibration(int leftVal, int rightVal);

	private:
		//Provides the state of the controller in order to
		//perform operations based on the input
		XINPUT_STATE		m_controllerState;
	
		//Provides the controller slot number which will be used to
		//identify the current controller for state use
		int					m_controllerSlot;
};
#endif